package cn.monkey.chat.server.proto.json;

import cn.monkey.chat.server.proto.Package;
import cn.monkey.chat.server.proto.PackageGroup;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class JsonPackageGroup implements PackageGroup {
    private List<JsonPackage> packages;

    public List<Package> getPackages() {
        return this.packages == null ? null : new ArrayList<>(this.packages);
    }
}
